From 8609ce58eb4e21d6feded4c4150b0b7b8b572d31 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 21 Nov 2007 15:08:10 +0000 Subject: [PATCH] C89 Fix in kml.c --- gpsbabel/kml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/kml.c b/gpsbabel/kml.c index 5c3d12516..20f9e9920 100644 --- a/gpsbabel/kml.c +++ b/gpsbabel/kml.c @@ -769,6 +769,9 @@ char * kml_gc_mkstar(int rating) static void kml_geocache_pr(const waypoint *waypointp) { char *p, *is; + double lat = waypointp->latitude;; + double lng = waypointp->longitude; +// optionally "fuzz" lat/lng here. kml_write_xml(1, "\n"); @@ -824,9 +827,6 @@ static void kml_geocache_pr(const waypoint *waypointp) kml_write_xml(-1, "\n"); // Location - double lat = waypointp->latitude;; - double lng = waypointp->longitude; -// optionally "fuzz" lat/lng here. kml_write_xml(1, "\n"); kml_write_xml(0, "%f,%f,%f\n", lng, lat, -- 2.30.2